]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
authPrompt.js: turn off the ellipsization of pam messages
authorvictoryang <tyang@suse.com>
Thu, 13 Oct 2016 04:29:21 +0000 (12:29 +0800)
committerRay Strode <rstrode@redhat.com>
Fri, 14 Oct 2016 13:28:34 +0000 (09:28 -0400)
When the user gets long failure messages from pam, the authPrompt
message label will clip the message and ellipsize with '…'.

This commit turns off ellipsization from the label, so it will
properly wrap.

https://bugzilla.gnome.org/show_bug.cgi?id=764445

js/gdm/authPrompt.js

index 50c66fd13deff55df90546662396a29ce873b92e..994c0807cafc883a2a2bdf2b05a0918e3f013aff 100644 (file)
@@ -13,6 +13,7 @@ const Params = imports.misc.params;
 const ShellEntry = imports.ui.shellEntry;
 const Tweener = imports.ui.tweener;
 const UserWidget = imports.ui.userWidget;
+const Pango = imports.gi.Pango;
 
 const DEFAULT_BUTTON_WELL_ICON_SIZE = 16;
 const DEFAULT_BUTTON_WELL_ANIMATION_DELAY = 1.0;
@@ -113,6 +114,7 @@ const AuthPrompt = new Lang.Class({
         this._message = new St.Label({ opacity: 0,
                                        styleClass: 'login-dialog-message' });
         this._message.clutter_text.line_wrap = true;
+        this._message.clutter_text.ellipsize = Pango.EllipsizeMode.NONE;
         this.actor.add(this._message, { x_fill: false, x_align: St.Align.START, y_align: St.Align.START });
 
         this._buttonBox = new St.BoxLayout({ style_class: 'login-dialog-button-box',